<template>
	<view class="outside">
		<image class="img" src="../../static/banner1.jpg" mode="aspectFill"></image>
		<view class="text">
			<view class="title">
				标题
			</view>
			<view class="line" v-if="!type">
				副标题
			</view>
			<view class="line" v-if="type">
				<view class="item">新石器</view>
				<view class="item">陶瓷</view>
			</view>
		</view>
		
		<view class="fly" v-if="showNum">{{num}}</view>
	</view>
</template>

<script>
	export default {
		props: {
			type: Boolean,
			showNum:Boolean,
			num:Number
		}
	}
</script>

<style>
	.outside {
		width: 100%;
		display: flex;
		align-items: center;
		flex-direction: column;
		margin-bottom: 30rpx;
		position: relative;
	}

	.img {
		width: 330rpx;
		height: 330rpx;
		border-radius: 5rpx 5rpx 0 0;
	}

	.text {
		width: 290rpx;
		padding: 20rpx;
		background: #fff;
	}

	.title {
		width: 100%;
		padding: 0 0 20rpx 0;
		font-size: 32rpx;
		font-weight: bold;
		color: #333;
	}

	.line {
		width: 100%;
		font-size: 24rpx;
		line-height: 40rpx;
		color: #666;
		display: flex;
	}
	
	.line .item{
		background: #eee;
		padding:0 20rpx;
		margin-right: 20rpx;
		border-radius: 50rpx;
	}
	
	.fly{
		height: 36rpx;
		font-size: 24rpx;
		position: absolute;
		left: 40rpx;
		top: 20rpx;
		padding: 0 20rpx;
		color: #fff;
		border-radius: 50rpx;
		background: #AE6059;
	}
</style>
